package org.dromara.product.domain.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import org.dromara.product.domain.KyStockOutRecords;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 出库记录业务对象 ky_stock_out_records
 *
 * @author kuyu
 * @date 2023-12-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = KyStockOutRecords.class, reverseConvertGenerate = false)
public class KyStockOutRecordsBo extends BaseEntity {

    /**
     * 编号
     */
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户
     */
    @NotNull(message = "用户不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long mid;

    /**
     * 出库编码
     */
    @NotBlank(message = "出库编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stockNo;

    /**
     * 仓库
     */
    @NotNull(message = "仓库不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long warehouseId;

    /**
     * 操作平台
     */
    @NotBlank(message = "操作平台不能为空", groups = { AddGroup.class, EditGroup.class })
    private String platform;

    /**
     * 出库类型id
     */
    @NotNull(message = "出库类型id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer outTypeId;

    /**
     * 客户id
     */
    @NotNull(message = "客户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer customerId;

    /**
     * 图片
     */
    @NotBlank(message = "图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String images;

    /**
     * 调拨关联入库表id
     */
    @NotNull(message = "调拨关联入库表id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long transInId;

    /**
     * 0申请,1审核中,2完成,-1拒绝
     */
    @NotNull(message = "0申请,1审核中,2完成,-1拒绝不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 审核等级
     */
    @NotNull(message = "审核等级不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer approveLevel;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long printNum;

    /**
     * 提交记录
     */
    @NotBlank(message = "提交记录不能为空", groups = { AddGroup.class, EditGroup.class })
    private String recordInfo;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mark;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date deletedAt;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String custom;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long transId;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long fromWarehouseId;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long fromZoneId;

    @TableField(exist = false)
    private List<KyStockOutRelationsBo> outList;
}
